<?php include './application/views/zhs_mobile/header.php';?>

<body>
<script type="text/javascript">
function recharge(){
	var page = parseInt(document.getElementById('recharge_page').value);
	var str = "";
	$.ajax({
		type: "GET",
		url: "/zhs_mobile/acenter/recharge_log_more/"+page,
		data: "",
		success: function(ret){
	    	if(ret.length > 0){
		        for(var i=0;i<ret.length;i++){
	        	  	if(i%2 != 0) str += "<tr style='background-color: rgb(237, 237, 237);'>";
			        else str += "<tr>";
					str += "<td>"+"宝付"+"</td>";
					str += "<td>"+ret[i].money+"</td>";
					str += "<td>"+ret[i].add_time+"</td>";
					str += "<td>"+ret[i].fstatus_text+"</td>";
					str += "</tr>";
		        }
		    	page = page+ret.length;
		    	document.getElementById('recharge_page').value=page;
		        var oldstr = document.getElementById('recharge_tab').innerHTML;
		    	document.getElementById('recharge_tab').innerHTML = oldstr+str;
		   	}
		},
		dataType: "json"
	});
}

</script>

<section class="invbd main">
   <h3 class="logtitle">充值记录</h3>
   <table class="wqtqb mt">
     <thead>
       <tr>
         <th>方式</th>
         <th>金额</th>
         <th>充值时间</th>
         <th>状态</th>
       </tr>
     </thead>
     <tbody  id="recharge_tab">
     <?php foreach ($recharge_list as $rec_log) {?>
       <tr>
         <td>宝 付</td>
         <td>￥<?php echo $rec_log['money']?> </td>
         <td>  <?php echo $rec_log['add_time']?> </td>
         <td>  <?php echo $rec_log['fstatus_text']?> </td>
       </tr>
     <?php }?>
     </tbody>
   </table>
   <input type="hidden" id="recharge_page" value="<?php echo $page;?>"/>
   <a href="javascript:recharge()"  class="membtn3">查看更多 &gt;&gt;</a>
   <br/><br/><br/><br/><br/><br/>


</section>
<?php include './application/views/zhs_mobile/footer.php';?>
